package com.app.controller;

import com.app.model.response.RetStatus;
import com.app.service.CommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Lichaojie on 2017/3/19. It's a beautiful day.
 */
@RequestMapping(value = "/commentsv1")
@RestController
public class Commentsv1Controller {

    @Autowired
    private CommentsService commentsService;

    @RequestMapping(value = "/submitCommentsv1")
    public RetStatus submitCommentsv1(@RequestBody String parameter){
        return commentsService.submitCommentsv1(parameter);
    }

    @RequestMapping(value = "/getCommentsv1/Update")
    public RetStatus getCommentsv1Update(@RequestBody String parameter){
        return commentsService.getCommentsv1Update(parameter);
    }

    @RequestMapping(value = "/getCommentsv1/LoadMore")
    public RetStatus getCommentsv1LoadMore(@RequestBody String parameter){
        return commentsService.getCommentsv1LoadMore(parameter);
    }

    //新增，获取悬赏帖的评论
    @RequestMapping(value = "/reward")
    public RetStatus getCommentsv1Reward(@RequestBody String parameter){
        return commentsService.getCommentsv1Reward(parameter);
    }

}
